package com.zhn.evsi.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Request;
import com.dtflys.forest.annotation.Retry;
import com.dtflys.forest.annotation.Var;
import com.zhn.evsi.domain.dto.evsi.character.EvsiCharacterPublicInfoDTO;
import org.springframework.stereotype.Component;

@Component
@BaseRequest(baseURL = "${eveData}${eveDataSns}")
@Retry(maxRetryCount = "3", maxRetryInterval = "1000")
public interface CharacterPublicClient {

    /**
     * 获取角色公开信息
     * */
    // https://esi.evetech.net/latest/characters/2119634223/?datasource=tranquility
    @Request(
            url = "/characters/{characters}/?datasource=tranquility",
            type = "GET"
    )
    EvsiCharacterPublicInfoDTO publicInfo(@Var("characters") Integer characters);
}
